package com.wyz.module.comm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.lang.reflect.Type;

/**
 * @author 无涯子
 * @version 1.0
 * @date 2024/4/14 16:20:05
 */
@Data
@ToString
@TableName("user")
@ApiModel(value = "用户DO对象")
public class UserDO {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("ID")
    private Integer id;

    @TableField("name")
    @ApiModelProperty("姓名")
    private String name;

    @TableField("sex")
    @ApiModelProperty("性别")
    private String sex;

    @TableField("age")
    @ApiModelProperty("年龄")
    private Integer age;

}
